package com.xiaoge.basedevlibrary.utils;

import android.app.Activity;
import android.content.Intent;

import com.xiaoge.basedevlibrary.R;

/**
 * Created by guoyzh on 2018/3/23 0023.
 * 跳转动画的activity
 */

public class IntentUtils {

    /**
     * 带动画的跳转
     **/
    public static void startActivity(Activity activity, Intent intent) {
        activity.startActivity(intent);
        // 添加这个方法可以添加跳转动画
        activity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
    }
}
